package com.bosssoft.feign.impl;

import com.bosssoft.feign.DepartmentFeignService;
import com.bosssoft.response.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Li kexi
 * Created on 2021/8/26.18:49
 */
@Component
@Slf4j
public class DepartmentFeignServiceImpl implements DepartmentFeignService {

    @Override
    public List<Long> selectChildrenIds(Long deptId) {
        log.info("DepartmentFeignService熔断了");
        return null;
    }

    @Override
    public Result selectChildrenPage(Integer current, Integer size, Long deptId) {
        log.info("DepartmentFeignService熔断了");
        return Result.error().message("DepartmentFeignService熔断了");
    }
}
